//
//  HomeTableViewCell.m
//  CookDemo
//
//  Created by lanou3g on 15/8/30.
//  Copyright (c) 2015年 DTR. All rights reserved.
//

#import "HomeTableViewCell.h"
#import "UIImageView+WebCache.h"

@interface HomeTableViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *FoodImageView;

@property (weak, nonatomic) IBOutlet UILabel *FoodNameLabel;

@property (weak, nonatomic) IBOutlet UILabel *FoodMakeName;

@end
@implementation HomeTableViewCell

- (void) setCellWithKitchenInfo:(RecommendKitchenInfo *)recommendKitchenInfo {
//    self.FoodImageView =
    self.FoodNameLabel.text =recommendKitchenInfo.name;
    NSDictionary *dic = recommendKitchenInfo.author;
    self.FoodMakeName.text = dic[@"name"];
    [self.FoodImageView sd_setImageWithURL: [NSURL URLWithString:[recommendKitchenInfo.sample_recipes lastObject][@"photo280"]]];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
